package com.company.oa.hr.mapper.employee;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.oa.hr.entity.employee.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    
    /**
     * 分页查询员工列表（包含部门和职位信息）
     */
    IPage<Map<String, Object>> selectEmployeePageWithDeptAndPosition(Page<Employee> page, @Param("employee") Employee employee);
    
    /**
     * 获取员工详情（包含部门和职位信息）
     */
    Map<String, Object> selectEmployeeDetailById(@Param("id") Long id);
} 